Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt: add limit on reusing buffer size #664

Merged
merged 3 commits into from
Jul 9, 2024
Merged

opt: add limit on reusing buffer size #664

merged 3 commits into from
Jul 9, 2024

Conversation

AsterDY
Copy link
Collaborator

@AsterDY AsterDY commented Jul 1, 2024

Fixed #614

internal/encoder/encoder.go Outdated Show resolved Hide resolved
@AsterDY AsterDY force-pushed the opt/buffers branch 2 times, most recently from 0d9d7e2 to 34747ef Compare July 8, 2024 09:48
ast/encode.go Show resolved Hide resolved
@AsterDY AsterDY enabled auto-merge (squash) July 9, 2024 04:46
@AsterDY AsterDY merged commit 456a3b9 into main Jul 9, 2024
42 of 43 checks passed
@AsterDY AsterDY deleted the opt/buffers branch July 9, 2024 05:04
@szyhf
Copy link

szyhf commented Jul 9, 2024

原来还有别的地方用到~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

使用sync.Pool管理buf的时候,高QPS可能会导致类似内存占用过大
3 participants